// 定义首页需要的接口函数
import request from "@/utils/request"

// 获取首页头部分类数据[一级 二级 商品推荐]
export const findAllCategory = () => {
    return request('/home/category/head', 'get')
}

// 获取单个顶部分类数据
export const findTopCategory = (id) => {
    return request('/category', 'get', { id })
}

// 获取二级分类条件筛选数据
export const findSubCategoryFilter = (id) => {
    return request('/category/sub/filter', 'get', {id})
}

export const findSubCategoryGoods = (params) =>{
    return request('/category/goods/temporary','post',params)
}